#ifndef __APP_DBG_DRV_H__
#define __APP_DBG_DRV_H__


#include <rtthread.h>
#include "os_evt.h"
#include "app_dbg_util.h"

//发送结构体
typedef struct
{
    UINT8 cmd;
    UINT8 *pdata;
    UINT16 datalen;
    UINT8 cnt;      //发送次数
    UINT16 mill;    //发送间隔 10ms倍数
    
}dbg_tx_t;

//===========================================================
extern void app_dbg_drv_item_set();
extern BOOL app_dbg_drv_item_get();
extern void app_dbg_char(UINT8 code);
extern void app_dbg_put(UINT8 *buf, UINT16 len);
extern BOOL app_dbg_drv_pkg_send(UINT8 cmd, UINT8 *pdata, UINT16 datalen);
extern BOOL app_dbg_drv_pkg_send_char(UINT8 cmd, UINT8 data);
extern BOOL app_dbg_drv_pkg_send_str(UINT8 cmd, char *pdat);
extern BOOL app_dbg_conn_flag_get();
extern BOOL app_dbg_drv_connect(dbg_conn_e e_conn);
extern BOOL app_dbg_drv_disconnect();
extern BOOL app_dbg_drv_init();
//===========================================================

#endif


